package com.lipp.luosu.constant;

import java.util.concurrent.CompletableFuture;

/**
 * @ClassNameGaobingfa
 * @description: TODO 类描述
 * @Author lipp
 * @Date 2024/1/24 9:17
 * @Version 1.0
 */
public class Gaobingfa {
    public static void main(String[] args) throws InterruptedException {

        for (int i = 0; i < 50000; i++) {
            String dat = "测试" + i;
            CompletableFuture.runAsync(() -> {
                System.out.println(dat);
//                dat="测试"+Thread.currentThread().getName();
            });
        }


        Thread.sleep(10000000);
    }
}
